package apka.SMSBillet;

import android.app.Application;
import android.app.PendingIntent;
import android.telephony.SmsManager;

public class SMSManager extends Application{
	private static SMSManager sInstance;
	
    @Override
    public void onCreate() {
      super.onCreate();  
      sInstance = this;
    }
    
    public static SMSManager getInstance() {
        return sInstance;
      }
    
	public static void sendSMS(String phoneNumber, String message, PendingIntent pi) {
		SmsManager sms = SmsManager.getDefault();
		sms.sendTextMessage(phoneNumber, null, message, pi, null);
	}
	
	
	
}
